package com.qf.mapper;

import com.qf.dto.UsersDto;
import com.qf.pojo.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UsersMapper {
    @Select("select * from users where username=#{username}")
    Users findByUsername(String username);
    @Insert("insert into users (username,password,passwordsalt,datastatus) value(#{username},#{password},#{passwordsalt},#{datastatus})")
    int addUser(UsersDto users);

}
